package com.example.userpointmgr.dao;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

//特点‌：属性与数据库字段一一对应。
//‌用途‌：主要用于数据访问层或持久层，提供与数据库的交互方法，如保存、更新和删除数据等


@Data
@TableName("user")
@ApiModel("用户表")
public class UserPo {
    @TableId(value ="id",type = IdType.AUTO)
    private int id;
    @ApiModelProperty
    private String openid;
    @ApiModelProperty("微信手机号")
    private String phoneNumber;
    @ApiModelProperty("真实姓名")
    private String realName;
    @ApiModelProperty("微信昵称")
    private String nickName;
    @ApiModelProperty("微信头像")
    private String avatar;
    @ApiModelProperty("用户工号")
    private int userNum;
    @ApiModelProperty("用户组织")
    private String userGroup;
    @ApiModelProperty("用户积分")
    private int userPoints;
    @ApiModelProperty("添加时间")
    private Date addTime;
    @ApiModelProperty("是否删除")
    private int isDelete;
    @ApiModelProperty("用户角色")
    private String role;

}